function [ shuffle ] = shuffle_patterns( patterns, S )

% SHUFFLE_PATTERNS Summary of this function goes here
%   Detailed explanation goes here

shuffle = [patterns;S];
shuffle = shuffle(:,randperm(length(patterns)));

end

